<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">集群任务结果计算信息</div>
        <table class="layui-table timo-detail-table">
            <tbody>
            <tr>
                <th width='100px'>任务触发Id</th>
                <td th:text="${entity.id}"></td>
                <th width='100px'>触发返回码</th>
                <td th:text="${entity.triggerResultCode}"></td>
            </tr>
            <tr>
                <th>触发时间</th>
                <td th:text="${#dates.format(entity.triggerTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
                <th>完成时间</th>
                <td th:text="${#dates.format(entity.triggerEndTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
            </tr>
            </tbody>
        </table>

        <table class="layui-table timo-detail-table">
            <tbody>
            <tr>
                <th>Id</th>
                <th>执行主机IP</th>
                <th>端口</th>
                <th>执行协议</th>
                <th>执行状态</th>
                <th>执行开始时间</th>
                <th>执行结束时间</th>
            </tr>
            <tr th:each="item:${list}">
                <td><a th:href="@{'/admin/quartz/job/trigger/collectLogDetails/'+${item.id}}" target="_blank" th:text="${item.id}"></a></td>
                <td th:text="${item.endpointIp}"></td>
                <td th:text="${item.endpointPort}"></td>
                <td th:text="${#dicts.keyValue('NET_PROTOCOL', item.netProtocol)}"></td>
                <td>
                    <span th:text="${#dicts.keyValue('COLLECT_STATUS', item.collectStatus)}" th:classappend="${item.collectStatus eq 'SUCCESS'} ? 'layui-btn layui-btn-sm layui-btn-danger'"></span>
                </td>
                <td th:text="${#dates.format(item.beginTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
                <td th:text="${#dates.format(item.endTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
            </tr>
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>